package cn.edu.zafu.bigdata.llc;

public class CubeTest {
    public static void main(String[] args) {
        // 创建Cube对象
        Cube cube1 = new Cube(2.0, 3.0, 4.0);
        Cube cube2 = new Cube(2.0, 3.0, 4.0);
        Cube cube3 = new Cube(5.0, 6.0, 7.0);

        // 测试相等性
        System.out.println("cube1 equals cube2: " + cube1.equals(cube2)); // 应该输出true
        System.out.println("cube1 equals cube3: " + cube1.equals(cube3)); // 应该输出false

        System.out.println("Height of cube1: " + cube1.getHeight());
    }
}
